package com.wangzh.lang;

import java.util.Scanner;

public class StringDemo2 {
    public static void main(String[] args) {
        //统计字符个数

        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int bigCount = 0;
        int littleCount = 0;
        int numberCount = 0;
        for (byte aByte : str.getBytes()) {
            char aByte1 = (char) aByte;
            if (aByte1 >= 'a' && aByte1 <= 'z') {
                littleCount++;
            } else if (aByte1 >= 'A' && aByte1 <= 'Z') {
                bigCount++;
            } else if (aByte1 >= '0' && aByte1 <= '9') {
                numberCount++;
            }
        }
        System.out.println("大写字母"+bigCount);
        System.out.println("小写字母"+littleCount);
        System.out.println("数字"+numberCount);
    }
}
